package com.google.sky.flow;

import com.google.sky.domain.Mark;

/**
 * @author: sk_y
 */
public class GameResult {
    private Mark winner;
    private Mark looser;

    private long winnerTime;
    private long looserTime;

    private int totalMoves;

    public void winner(MoveController moveController){
        winner=moveController.getMark();
        winnerTime = moveController.getAllMovesTime();
    }

    public void looser(MoveController moveController){
        looser=moveController.getMark();
        looserTime = moveController.getAllMovesTime();
    }

    public Mark getWinner(){
        return winner;
    };

    public Mark getLooser(){
        return looser;
    };

    public long getWinnerTime() {
        return winnerTime;
    };

    public long getLooserTime(){
        return  looserTime;
    }

    public int getTotalMoves() {
        return totalMoves;
    }

    public void setTotalMoves(int totalMoves) {
        this.totalMoves = totalMoves;
    }
}
